//当前视口宽度
let nowClientWidth = document.documentElement.clientWidth ? document.documentElement.clientWidth : 0;
let nowClientHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : 0;


export function nowSize(val, initWidth = 1920) {
    return val * (nowClientWidth / initWidth);
}

export function nowHeight(val, innerHeight = 1080) {
    return val * (nowClientHeight / innerHeight);
}